#######################
function Get-TableConstraints
{
    param($ConnectionString,$dbmsType,$connectionName)

    if ($Script:RSDDSql.$dbmsType.GetTableConstraints)
    { 
        try { Get-OLEDBData -ConnectionString $ConnectionString -sql $Script:RSDDSql.$dbmsType.GetTableConstraints }
        catch {
                $ex = $_.Exception
                Write-LogMessage -Source 'Get-TableConstraints' -Message "$($connectionName):$ex.Message"
                Write-Error "Get-TableConstraints $($connectionName):$ex.Message"
                continue
        }
    }

} #Get-TableConstraints
